<?php
/**
 * The Header template for our theme
 *
 * Displays all of the <head> section and everything up till <div id="main">
 *
 * @package WordPress
 * @subpackage Twenty_Twelve
 * @since Twenty Twelve 1.0
 */
?><!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 7) | !(IE 8)  ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?>
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
<![endif]-->
<?php wp_head(); ?>
<script src="<?php bloginfo('template_url') ?>/lightbox/jquery-1.8.0.min.js"></script>
<!--<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url') ?>/lightbox/lightbox.css" />

<script src="<?php bloginfo('template_url') ?>/lightbox/lightbox.js"></script>
<script type="text/javascript">Lightboxload("<?php bloginfo('template_url'); ?>/");</script>-->

<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url') ?>/cursor_following_menu/malihu.cfm.css" />
<script src="<?php bloginfo('template_url') ?>/cursor_following_menu/jquery.easing.1.3.js"></script>

<?php if ( huhu_get_option('show_duoshuo_ua',true)) : ?>
<!--多说UA显示必要文件[start]-->
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url') ?>/lib/mdsua/show.ua.css">
<script type="text/javascript" src="<?php bloginfo('template_url') ?>/lib/mdsua/ua-parser.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url') ?>/lib/mdsua/mdsua.js"></script>
<!--多说UA显示必要文件[end]-->
<?php endif; ?>
</head>

<body <?php body_class(); ?>>
<div id="page" class="hfeed site">
	<header id="masthead" class="site-header" role="banner">
		<?php if ( get_header_image() ) : ?>
		<div id="site-avatar" class="site-avatar-box">
			<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
				<div class="avatar" style="background: url(<?php header_image(); ?>) #AAA center;"></div>
			</a>
		</div><!--#site-avatarr -->
		<?php endif; ?>

		<hgroup>
			<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
			<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
		</hgroup>

		<div id="search-container" class="search-box-wrapper">
			<div class="search-box">
				<?php get_search_form(); ?>
			</div>
		</div><!--#search-container -->

		<nav id="site-navigation" class="main-navigation" role="navigation">
			<h3 class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></h3>
			<a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a>
			<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
		</nav><!-- #site-navigation -->
		<div id="site-sidebar" class="head-sidebar-box">
			<h3 class="menu-toggle"><?php _e( 'Widget', 'twentytwelve' ); ?></h3>
			<?php get_sidebar(); ?>
		</div>
		<div id="site-cursor-fixed" class="cursor-fixed-navigation">
			<div id="cf_menu">
				<?php wp_nav_menu( array( 'theme_location' => 'cursor-fixed', 'menu_class' => 'container') ); ?>
			</div>
			<script type="text/javascript">
			function show_cursor_fixed_menu () {
				if($('#cf_menu ul').get(0).id=='')return;
				$('#cf_menu').append('<div class="title">MENU</div>');
				/*$('#cf_menu a').each(function(){
					this.onclick='Animate2id(this.href)';
				});*/
				$('#cf_menu ul.container').prepend('<li><a href="#" onclick="Animate2id(\'#masthead\');">↑ TOP</a></li>');
				$mouseover_title="+ MENU"; //menu title text on mouse-over
				$mouseout_title="MENU"; //menu title text on mouse-out
				$menu_following_speed=2000; //the speed in which the menu follows the cursor (in milliseconds)
				$menu_following_easing="easeOutCirc";
				$menu_cursor_space=30; //space between cursor and menu
				$menu_show_speed="slow"; //menu open animation speed
				$menu_show_easing="easeOutExpo"; //menu open animation easing type
				$menu_hide_speed="slow"; //menu close animation speed
				$menu_hide_easing="easeInExpo"; //menu close animation easing type
				$.getScript('<?php bloginfo('template_url') ?>/cursor_following_menu/malihu.jquery.cfm.js',function(){

				});
			}
			show_cursor_fixed_menu();
			</script>
		</div><!-- #site-cursor-fixed -->
	</header><!-- #masthead -->
	<?php if ( huhu_get_option('show_meteor',true)) : ?>
	<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url') ?>/lib/meteor/meteor.css">
	<script type="text/javascript" src="<?php bloginfo('template_url') ?>/lib/meteor/meteor.js"></script>
	<?php endif; ?>
	<div id="main" class="wrapper">